﻿using Microsoft.Practices.Prism.Modularity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace de.wolfmarco.pas.Shared.Language
{
    public static class ModuleDisplayNames
    {
        public static string GetModuleDisplayName(ModuleInfo moduleInfo)
        {
            string displayName = ModuleResource.ResourceManager.GetString(moduleInfo.ModuleName);

            if (String.IsNullOrEmpty(displayName))
                displayName = moduleInfo.ModuleName;

            return displayName;
        }
    }
}
